
export function parseDateFull(time){
  if(time === '' || time == null || time == '')
    return '';

  var x = new Date(time);
  var z = {
    y: x.getFullYear(),
    M: x.getMonth() + 1,
    d: x.getDate(),
    h: x.getHours(),
  };
  if (z.M < 10) {
    z.M = "0" + z.M;
  }
  if (z.d < 10) {
    z.d = "0" + z.d;
  }

  return z.y + "-" + z.M + "-" + z.d;
}
